package com.ssm.server.util;

import java.util.HashMap;


public class WuliuUtil {
	/**
     * 快递100实时查询
     *
     * @param customer
     * @param key
     * @param com
     * @param num
     */
    public static String realTimeQuery(String customer, String key, String com, String num) {
        String param = "{\"com\":\"" + com + "\",\"num\":\"" + num + "\"}";
        String sign = MD5Util.MD5Encode(param + key + customer, "").toUpperCase();
        HashMap<String,String> params = new HashMap<String,String>();
        params.put("param", param);
        params.put("sign", sign);
        params.put("customer", customer);
        String resp;
        resp = HttpUtil.post("http://poll.kuaidi100.com/poll/query.do", params);
        return resp;
    }
}
